package com.system.data.service;

import com.system.data.dao.ZcfgDao;
import com.system.data.model.ZcfgArticle;
import com.system.data.model.Zcfg_info;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Service
public class ZcfgService {
    @Autowired
    private ZcfgDao zcfgDao;

    public List<Zcfg_info> findZcfgInfo(){
        return zcfgDao.findZcfgInfo();
    }

    public List<ZcfgArticle> findZcfgArticle(@RequestParam String title){
        return zcfgDao.findZcfgArticle(title);
    }
}
